package com.group02.community.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import com.group02.community.entity.community.ZyBuilding;
import com.group02.community.entity.community.ZyUnit;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface BuildingMapper extends BaseMapper<ZyBuilding> {

    IPage<ZyBuilding> getBuildingPage(Page<ZyBuilding> page, @Param("zyBuilding") ZyBuilding zyBuilding);

    List<String> getBuildingNames();

    List<ZyUnit> getUnitListByBuildingId(String buildingId);
}
